package com.yuwei.user

import androidx.recyclerview.widget.LinearLayoutManager
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.yuwei.base.RoutePath
import com.yuwei.common.mvi.BaseViewActivity
import com.yuwei.user.adapter.HelpAdapter
import com.yuwei.user.databinding.ActivityHelpBinding
import com.yuwei.user.entity.HelpItemEntity

@Route(path = RoutePath.MODULE_LOGIN_HELP_ACTIVITY)
class HelpActivity : BaseViewActivity<ActivityHelpBinding>() {
     lateinit var helpAdapter: HelpAdapter
     lateinit var helpAdapter1: HelpAdapter
     var helpItemEntity= listOf<HelpItemEntity>()
     var helpItemEntity1= listOf<HelpItemEntity>()
    override fun initView() {
        helpItemEntity= listOf(
            HelpItemEntity("找回账号","原登录方式已忘记，或无法使用时，点此找回账号"),
            HelpItemEntity("锁定保护","手机丢失或怀疑账号被盗，及时锁定账号"),
            HelpItemEntity("解除锁定","确保账号安全后，解除锁定可以恢复账号正常使用")
        )
        helpItemEntity1= listOf(
            HelpItemEntity("使用手机号登录遇到问题",""),
            HelpItemEntity("使用头条/微博登录遇到问题",""),
            HelpItemEntity("账号被封禁","")
        )
        helpAdapter=HelpAdapter(helpItemEntity)
        helpAdapter1=HelpAdapter(helpItemEntity1)
        binding.rvHelp.adapter=helpAdapter
        binding.rvWen.adapter=helpAdapter1
        binding.rvHelp.layoutManager= LinearLayoutManager(this)
        binding.rvWen.layoutManager=LinearLayoutManager(this)
        binding.llAllWen.setOnClickListener {
            ARouter.getInstance().build(RoutePath.MODULE_LOGIN_ALL_HELP_ACTIVITY).navigation()
        }
        binding.ivBack.setOnClickListener {
            finish()
        }
    }

    override fun initData() {

    }
}